package review.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;
import review.entity.TitleLevel;

import java.util.List;

@Repository
public interface TitleLevelDAO extends JpaRepository<TitleLevel, Integer> {

  List<TitleLevel> findAllByTitle(Integer titleid);

  TitleLevel findByName(String name);
}
